package com.atguigu.spzx.manager.service.impl;

import com.atguigu.spzx.manager.mapper.RegionMapper;
import com.atguigu.spzx.manager.service.RegionService;
import com.atguigu.spzx.model.entity.region.Region;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * title:
 * author: zgl
 * date: 2024/1/4
 * description：
 */
@Service
public class RegionServiceImpl implements RegionService {
    @Autowired
    private RegionMapper regionMapper;

    @Override
    public List<Region> getRegionByPcode(Long parentCode) {
        return regionMapper.getRegionByPcode(parentCode);
    }
}
